﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CarRace
{
    public class CarGotten
    {
        public int id;
        public List<PositionGotten> Position_List = new List<PositionGotten>();

        public CarGotten(int _id)
        {
            id = _id;
        }

        public void StorePosition(float x, float y, int time)
        {
            if (Position_List.Count >= 40)
                Position_List.RemoveAt(0);
            Position_List.Add(new PositionGotten(x, y, time));
        }
    }
}
